public class Calculator {

    private int result;

    public Calculator() {
        this.result = 0;
    }

    public void add(int value) {
        result += value;
    }

    public void subtract(int value) {
        result -= value;
    }

    public void multiply(int value) {
        result *= value;
    }

    public void divide(int value) {
        if (value != 0) {
            result /= value;
        }
    }

    public void reset() {
        result = 0;
    }

    public int getResult() {
        return result;
    }

    public static void main(String[] args) {
        Calculator calculator = new Calculator();
        calculator.add(5);
        calculator.subtract(3);
        calculator.multiply(2);
        calculator.divide(4);
        System.out.println("Result: " + calculator.getResult());

        Calculator anotherCalculator = new Calculator();
        anotherCalculator.add(10);
        anotherCalculator.subtract(2);
        anotherCalculator.multiply(calculator.getResult());
        anotherCalculator.divide(5);
        System.out.println("Another Calculator Result: " + anotherCalculator.getResult());
    }
}
